import { GETMOVIELIST } from "../constants/movieConst"
const init={
    movieList:[]
}
export default function count(prevState=init,action){
    const {type,data}=action
    switch (type) {
        case GETMOVIELIST:
            return {...init,movieList:data}
    }
    return prevState
}